<?php

namespace App\Http\Requests\User;


use App\Http\Requests\AbstractBaseRequest;

class EditPasswordRequest extends AbstractBaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'old_password' => ['required', 'string', 'between:6,20'],
            'pay_pass' => ['required', 'string', 'between:6,20'],
            'new_password' => ['required', 'string', 'between:6,20'],
        ];
    }

    public function attributes(): array
    {
        return [
            'old_password' => trans('旧的登录密码'),
            'new_password' => trans('新的登录密码'),
            'pay_pass' => trans('安全密码'),
        ];
    }

}
